import { View, Text } from 'react-native'
import { createStyles, useStyles, ThemeImage } from '@mf2e/react-native-theme-styles'
import Assets from '@/assets'

const HelloReactNative = () => {
  const styles = useStyles(themeStyles)

  return (
    <View style={styles.container}>
      <Text style={styles.title}>Hello React Native</Text>
      <ThemeImage style={styles.logo} {...Assets.logo} />
    </View>
  )
}

const themeStyles = createStyles({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#fff',
  },
  title: {
    marginBottom: 100,
    width: '100%',
    fontSize: 40,
    fontWeight: 'bold',
    color: '#333',
    textAlign: 'center',
  },
  logo: {
    width: 200,
    height: 200,
    borderRadius: 10,
  },
})

export default HelloReactNative
